<!-- 文章详情页面 -->

<!-- 获取登录状态 -->
<script src="/login/status"></script>

<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>阿里百秀-发现生活，发现美!</title>
  <link rel="stylesheet" href="assets/css/style.css">
  <link rel="stylesheet" href="assets/vendors/font-awesome/css/font-awesome.css">
  <link rel="stylesheet" href="assets/vendors/nprogress/nprogress.css">
</head>

<body>
  <div class="wrapper">
    <div class="topnav">
      <ul class="category">

      </ul>
    </div>
    <div class="header">
      <h1 class="logo"><a href="index.html"><img src="assets/img/logo.png" alt=""></a></h1>
      <ul class="nav category">

      </ul>
      <div class="search">
        <form class="searchForm">
          <input type="text" class="keys" placeholder="输入关键字">
          <input type="submit" class="btn" value="搜索">
        </form>
      </div>
    </div>
    <div class="aside">
      <div class="widgets">
        <h4>搜索</h4>
        <div class="body search">
          <form class="searchForm">
            <input type="text" class="keys" placeholder="输入关键字">
            <input type="submit" class="btn" value="搜索">
          </form>
        </div>
      </div>
      <div class="widgets">
        <h4>随机推荐</h4>
        <ul class="body random" id="random">

        </ul>
      </div>
      <div class="widgets">
        <h4>最新评论</h4>
        <ul class="body discuz">
          
        </ul>
      </div>
    </div>
    <div class="content">
      <div class="article" id="article">

      </div>
      <style type="text/css">
        .comment {
          margin-bottom: 20px;
        }

        .comment textarea {
          box-sizing: border-box;
          padding: 10px;
          width: 100%;
          height: 80px;
          display: block;
        }

        .comment input {
          width: 100px;
          height: 30px;
          margin-top: 10px;
        }
      </style>
      <div class="comment" id="commentBox">
        
      </div>
      <div class="panel hots">
        <h3>热门推荐</h3>
        <ul id="hotBox">

        </ul>
      </div>
    </div>
    <div class="footer">
      <p>© 2016 XIU主题演示 本站主题由 themebetter 提供</p>
    </div>
  </div>
  <script src="assets/vendors/jquery/jquery.js"></script>
  <script src="assets/vendors/nprogress/nprogress.js"></script>
  <!-- 引入模板引擎 -->
  <script src="assets/vendors/art-template/template-web.js"></script>
  <!-- 引入公有js文件 -->
  <script src="assets/js/home/common.js"></script>

  <!-- 文章详情页模板 -->
  <script type="text/html" id="tpl-article">
    <div class="breadcrumb">
      <dl>
        <dt>当前位置：</dt>
        <dd><a href="list.html?id={{article.category._id}}">{{article.category.title}}</a></dd>
        <dd>{{article.title}}</dd>
      </dl>
    </div>
    <br>
    <h2 class="title">
      <a href="javascript:;">{{article.title}}</a>
    </h2>
    <br>
    <div class="meta">
      <span>{{article.author.nickName}} 发布于 {{$imports.dateFormat(article.createAt)}}</span>
      <span>分类: <a href="list.html?id={{article.category._id}}">{{article.category.title}}</a></span>
      <span>阅读: ({{article.meta.views}})</span>
      <span>评论: ({{article.meta.comments}})</span>
      <a href="javascript:;" class="like" data-id="{{article._id}}">
        <i class="fa fa-thumbs-up"></i>
        <span>赞({{article.meta.likes}})</span>
      </a>
    </div>
    <br>
    <p>{{article.content}}</p>
  </script>

  <!-- 评论模板 -->
  <script type="text/html" id="tpl-comment">
    <form>
      <textarea name="comment"></textarea>
      <input type="submit" value="提交评论">
    </form>
  </script>

  <!-- 引入当前文件的js处理文件 -->
  <script src="assets/js/home/detail.js"></script>
</body>

</html>